<#include "/layout/header.ftl" />
<#import "/include/ui.ftl" as blue />

<script>

function search_click()
{
	var obj = $.getObject("#div_search");	
	$("#div_grid").simpleLoad("/cms/pan/delete_file_data_list", obj, 0);
	
}

function delete_click(id)
{
	var obj = {ids: id};
	$.simpleConfirm("确定删除？", function(ops)
	{
		$.simpleAjax("/cms/pan/delete_file_data_delete", obj, function(o)
		{
			$.successAlert("删除成功");
			$("#tr_" + id).remove();
		});
	});
}

</script>

<div class="am-g am-cf am-margin-top am-margin-bottom">
	<div class="am-u-sm-3 am-padding-right-0">
		<div class="am-btn-group">
		</div>
	</div>
	<div class="am-u-sm-9 am-form-inline" id="div_search">

		<div class="am-form-group">
			<input type="text" name="name" class="am-form-field" placeholder="输入文件名" />
		</div>

		<div class="am-form-group">
			<select  name="type" data-am-selected="{'btnWidth': '150px'}">
				<@blue.select list=map.uploadType search=1 placeholder="选择文件类型" />
			</select>
		</div>

		<a href="javascript:void(0)" onclick="search_click()" class="am-btn am-btn-primary am-radius">搜索</a>
	</div>
</div>

<div class="am-g" id="div_grid">
	<#include "/cms/pan/delete_file_data_list_grid.ftl" />
</div>

<#include "/layout/footer.ftl" />